 import java.util.Scanner;
 
 public class PP28
 {
    public static void main(String[] args)
    {
       int hours;
       int minutes;
       int seconds;
       int conversion_factor=60;
       int total_seconds;
     
       Scanner scan = new Scanner(System.in);

       System.out.print("Enter the number of hours:");
       hours = scan.nextInt();

       System.out.print("Enter the number of minutes:");
       minutes = scan.nextInt();
  
       System.out.print("Enter the number of seconds:");
       seconds = scan.nextInt();

       total_seconds = hours*conversion_factor*conversion_factor + minutes*conversion_factor + seconds;
 
       System.out.println("total seconds=" + total_seconds);
     }
 }
       
